<?php
include dirname(__FILE__).'/../Control/AdminControl.cls.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$Project ?></title>		
	<!--                       CSS                       -->
	<link rel="stylesheet" href="../Resources/Css/reset.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="../Resources/Css/pages.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="../Resources/Css/invalid.css" type="text/css" media="screen" />	

	<!--                       Javascripts                       -->
	<script type="text/javascript" src="../Resources/Scripts/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" src="../Resources/Scripts/simpla.jquery.configuration.js"></script>
	<script type="text/javascript" src="../Resources/Scripts/facebox.js"></script>
	<script type="text/javascript" src="../Resources/Scripts/jquery.wysiwyg.js"></script>
	<script type="text/javascript" src="../Resources/Scripts/jquery.datePicker.js"></script>
	<script type="text/javascript" src="../Resources/Scripts/jquery.date.js"></script>		
</head>
<body>
<?php
$Admin = new AdminControl();
$mydb = new DataBaseObject();
if (Get::getByKey('action')=='setup2')
{	
	$mydb->db->update('tableitems',array('tableNameCN'=>Post::getByKey('tableNameCN')),array('tableName'=>Post::getByKey('tableName')));
	Header("Location:adminsetup2.php");
}
$model = $mydb->db->selectSingle('tableitems',array('tableName'=>Get::getByKey('tableName')));
?>
<div id="main-content">		
	<div class="content-box">
	<div class="content-box-header">					
		<h3>当前位置：<?=$Project?>管理系统 &gt; 创建向导---第一步名称</h3>					
		<ul class="content-box-tabs">
			<li><a href="#tab1" class="default-tab">修改文章分类</a></li>
		</ul>					
		<div class="clear"></div>					
	</div>
	<div class="content-box-content">					
		<div class="tab-content default-tab" id="tab1"> 
			<form action="?action=setup2" method="post" name="admins" id = "admins">		
				<fieldset>								
					<p>	
					<p>	
						<label>表名称</label>
						<input class="text-input small-input" type="text" id="tableName" name="tableName" value="<?=$model['tableName']?>" readonly />		
						<label>中文名称</label>
						<input class="text-input small-input" type="text" id="tableNameCN" name="tableNameCN" value="<?=$model['tableNameCN']?>" />																			
					</p>																												
					</p>
					<div class="clear"></div>
					<input  type="submit"  value="下一步"/>
				</fieldset>
			</form>
		</div> 					
	</div>
</div> 
</div>

</body>  
</html>
